<template>
	<!-- @touchstart="touchStart" @touchend="touchEnd" -->
	<view class="bg-white authentication">
		<view class="au_header">
			Personal Information
		</view>
		<view class="au_flow">
			<view class="flow_texts">
				<text class="flow_text active">Basic Info</text>
				<text class="flow_text active">Work Info</text>
				<text class="flow_text active">Bank Info</text>
			</view>
			<!-- 流程线 -->
			<view class="flow_lines">
				<view class="flow_line">

				</view>
				<view class="flow_Cirline">

				</view>
				<view class="flow_Cirline two">

				</view>
				<view class="flow_Cirline there">

				</view>
			</view>
			<!-- from表单提交 -->
			<u--form :model="auth" :rules="rules" ref="uForm">
				<!-- 上传文件 -->
				<!-- <view class="update">
					<view class="update_left">
						<text class="up_title">Aadhaar Front</text>
						<u-upload :fileList="fileList1" @afterRead="afterRead" @delete="deletePic" name="1" multiple
							:maxCount="10" uploadIcon="plus"></u-upload>
					</view>
					<view class="update_right">
						<text class="up_title">Aadhaar Back</text>
						<u-upload :fileList="fileList2" @afterRead="afterRead" @delete="deletePic" name="1" multiple
							:maxCount="10" uploadIcon="plus"></u-upload>
					</view>
				</view> -->
				<!-- 就业类型 -->
				<u-form-item prop="auth1_ifscCode" @click="showEmploymentType = true" ref="item1" border>
					<u--input v-model="auth.ifscCode" disabledColor="#ffffff" placeholder="Please enter"
						border="surround" suffixIcon="arrow-down" color="#D53030" placeholderStyle="color:#D53030">
					</u--input>
					<span class="i_Birthday">IFSC Code</span>
				</u-form-item>
				<!-- 每月额度 -->
				<u-form-item prop="auth1_BranchNamely" ref="item1" @click="showUncomeMonthly = true" border>
					<u--input v-model="auth.BranchNamely" disabledColor="#ffffff" placeholder="Please enter"
						border="surround" suffixIcon="arrow-down" color="#D53030" placeholderStyle="color:#D53030">
					</u--input>
					<span class="i_sex">Branch Namely</span>

				</u-form-item>
				<!-- 工作时间 -->
				<u-form-item prop="auth1_BankAccountNo" ref="item1" @click="showUncomeMonthly = true" border>
					<u--input v-model="auth.BankAccountNo" disabledColor="#ffffff" placeholder="Please enter"
						border="surround" suffixIcon="arrow-down" color="#D53030" placeholderStyle="color:#D53030">
					</u--input>
					<span class="i_sex">Bank Account No</span>
				</u-form-item>
				<!-- 工作时间 -->
				<u-form-item prop="auth1_AadhaarNumber" ref="item1" @click="showUncomeMonthly = true" border>
					<u--input v-model="auth.AadhaarNumber" disabledColor="#ffffff" placeholder="Please enter"
						border="surround" suffixIcon="arrow-down" color="#D53030" placeholderStyle="color:#D53030">
					</u--input>
					<span class="i_sex">Aadhaar Number</span>
				</u-form-item>
				<button class="from_next" @click="submit">NEXT</button>
			</u--form>
			<u-popup :show="show" mode="bottom" @close="close" @open="open" round="38rpx">
				<view style="height:378rpx;" class="popup">
					<text class="popup_text">Obrain a personal credit report to apply for a higher loan amount.</text>
					<button class="popup_button" @click="apply">APPLY</button>
				</view>
			</u-popup>
			<uni-popup ref="popup" type="center" :mask-click="false">
				<view class="returns">
					<image class="pop-img" src="../../static/pop.png" mode=""></image>
					<view class="pop-tit">
						Tips
					</view>
					<view class="pop-text" style="margin-top: 25rpx;">
						You have not finished yet.
					</view>
					<view class="pop-text">
						Are you sure you want to quit?
					</view>
					<view class="pop-btn">
						<button @click="quit" class="quit">Quit</button>
						<button @click="closepop1" class="closes">Close</button>
					</view>
				</view>
			</uni-popup>
			<uni-popup ref="popup10" type="center" :mask-click="false">
				<view class="returns">
					<view class="pop-text">
						A new Customer Service Manager has been assigned to you！
					</view>
					<view class="pop-btn">
						<button @click="sures" class="quit">Confirm</button>
						<button @click="closepop" class="closes">Close</button>
					</view>
				</view>
			</uni-popup>
		</view>
	</view>
</template>

<script>
	import configService from '@/common/service/config.service.js';
	import {
		getRawKey,
		getEncryptString,
		getDecryptString
	} from "../../defaut.js"
	import $_storage from '../../common/util/storage'
	export default {
		data() {
			return {
				fileList1: [],
				fileList2: [],
				auth: {
					BranchNamely: "",
					BankAccountNo: "",
					AadhaarNumber: "",
					ifscCode: "",

				},
				shape: '', //round 圆形
				loading: false,
				userName: 'admin',
				// password: '123456',
				password: 'universa',
				phoneNo: '',
				smsCode: '',
				showPassword: false, //是否显示明文
				loginWay: 1, //1: 账密，2：验证码
				smsCountDown: 0,
				smsCountInterval: null,
				toggleDelay: false,
				version: '',
				encoded: '',
				code: '',
				rules: {
					"auth1.BranchNamely": {
						type: "string",
						require: true,
						message: "Please select employment status",
						trigger: ['blur', 'change']
					},
					"auth1_AadhaarNumber": {
						type: "string",
						require: true,
						message: "Please select monthly funds",
						trigger: ['blur', 'change']
					},
					"auth1_BankAccountNo": {
						type: "string",
						require: true,
						message: "Please select a work date",
						trigger: ['blur', 'change']
					},
					"auth1_ifscCode": {
						type: "string",
						require: true,
						message: "Please select a work date",
						trigger: ['blur', 'change']
					}
				},
				value1: Number(new Date()),
				value2: Number(new Date()),
				show: false,
				showEmploymentType: false,
				showUncomeMonthly: false,
				showWorkingSince: false,

				// 刚触碰的时间
				startTime: 0,
				// 刚触碰的位置
				startPosition: 0,
				// 结束的位置
				endPosition: 0,
				moves: 0, // 最大值为100
				appwidth: null,
				// queryParam:{
				// 	pageNo:1,
				// 	pageSize:100
				// },
				kefutel:'',
				kename:'',
				nativePlug:null, //打点
			}

		},

		onLoad: function(option) {
			if(uni.getStorageSync('three')){
				let arr= uni.getStorageSync('three')
				this.auth.ifscCode=arr.year,
				this.auth.BranchNamely=arr.sex,
				this.auth.BankAccountNo=arr.married,
				this.auth.AadhaarNumber=arr.fullName
			}
		},

		methods: {
			submit() {
				// this.$refs.uForm.validate().then(res => {
				// 				uni.$u.toast('校验通过')
				// 			}).catch(errors => {
				// 				uni.$u.toast('校验失败')
				// 			})
				if (!this.auth.ifscCode) {
					uni.showToast({
						title: 'Incomplete information',
						icon: 'none',
						duration: 2000,
					});
					return;
				} else if (!this.auth.BranchNamely) {
					uni.showToast({
						title: 'Incomplete information',
						icon: 'none',
						duration: 2000,
					});
					return;
				} else if (!this.auth.BankAccountNo) {
					uni.showToast({
						title: 'Incomplete information',
						icon: 'none',
						duration: 2000,
					});
					return;
				} else if (!this.auth.AadhaarNumber) {
					uni.showToast({
						title: 'Incomplete information',
						icon: 'none',
						duration: 2000,
					});
					return;
				}
				const three={
					year:this.auth.ifscCode,
					sex:this.auth.BranchNamely,
					married:this.auth.BankAccountNo,
					fullName:this.auth.AadhaarNumber,
				}
				uni.setStorageSync('three',three)
				const data = {
					infoAuthStatus: 1, //uni.getStorageSync('infoAuthStatus')
					orderStatus:1,
					ifscCode: this.auth.ifscCode,
					branchName: this.auth.BranchNamely,
					bankAccountNo: this.auth.BankAccountNo,
					cardNumber: this.auth.AadhaarNumber,

					// brithday: this.auth.year,
					// gender: this.auth.sex,
					// married: this.auth.Married,
					// fullName: this.auth.FullName,
					// email: this.auth.Email,
					// employmentType: this.auth.EmploymentType,
					// unconmeMonthly: this.auth.UncomeMonthly,
					// workingSince: this.auth.WorkingSince,
					// orderStatus: 1,
				};

				const paramsString = JSON.stringify(data);
				this.encoded = getEncryptString(paramsString, this.$password())
				// this.$http.post("user/v1/save", {
				// 	data: {
				// 		login: this.encoded
				// 	}
				this.$http.post("user/v1/save", '', {
					params: {
						login: this.encoded
					}
				}).then(res => {
					let info = getDecryptString(res.data.data, this.$password())
					console.log('info', info);
					if (res.data.status == 200) {
						// 打点
						if(!uni.getStorageSync('dadian4')){
							this.nativePlug = uni.requireNativePlugin("FbKochava")
							if(this.nativePlug != null){
								this.nativePlug.eventTracking("auth_completed","tel",uni.getStorageSync("phone"))
								
							}
							uni.setStorageSync('dadian4','1')
						}
						
						$_storage.setStorage('authentication_3', data)
						getDecryptString(res.data.data, this.$password())
					}
				})
				console.log(this.auth);
				this.shows = true

				this.show = true
			},
			// 删除图片
			deletePic(event) {
				this[`fileList${event.name}`].splice(event.index, 1)
			},
			// 新增图片
			async afterRead(event) {
				// 当设置 multiple 为 true 时, file 为数组格式，否则为对象格式
				let lists = [].concat(event.file)
				let fileListLen = this[`fileList${event.name}`].length
				lists.map((item) => {
					this[`fileList${event.name}`].push({
						...item,
						status: 'uploading',
						message: '上传中'
					})
				})
				for (let i = 0; i < lists.length; i++) {
					const result = await this.uploadFilePromise(lists[i].url)
					let item = this[`fileList${event.name}`][fileListLen]
					this[`fileList${event.name}`].splice(fileListLen, 1, Object.assign(item, {
						status: 'success',
						message: '',
						url: result
					}))
					fileListLen++
				}
			},
			uploadFilePromise(url) {
				console.log(url);
				const data = {
					multipartFile: url
				}
				const paramsString = JSON.stringify(data);
				this.encoded = getEncryptString(paramsString, this.$password())
				return new Promise((resolve, reject) => {
					this.$http.post("/api/oss/upload", {
						data: {
							login: this.encoded
						}
					}).then(res => {
						console.log(res);
					})
				})
			},
			open() {
				// console.log('open');
			},
			close() {
				this.show = false
				// console.log('close');
			},
			// 保存用户信息 分配客服
			fenpei(val, val1,va) {
				let data
				// 若用户客服名称在客服列表但客服手机号不同需要更改用户的客服手机号
				if (va) {
							console.log('0001')
							console.log(this.kutel)
							data = {
								linkKefu: this.kutel, //手机号
								linkName: this.kuna, //客服名字
								accountStatus: uni.getStorageSync('brand') || '' // 机型
							}
						} else{
							if (!val1) {
								data = {
									linkKefu: val.phone, //手机号
									linkName: val.userName, //客服名字
									accountStatus: uni.getStorageSync('brand') || '' // 机型
								}
							} else  {
								// 直接分配客服
								data = {
									linkKefu: val1.phone, //手机号
									linkName: val.userName, //客服名字
									accountStatus: uni.getStorageSync('brand') || '' // 机型
								}
							}
							this.kefutel= val.phone
						}
				let datas = getEncryptString(JSON.stringify(data), this.$password())
				this.$http.post("/user/v1/save", '', {
					params: {
						login: datas
					}
				}).then(res => {
						this.getUserInfo("click");
					if (res.data.status == 200) {
						return
							// if (plus.os.name == "Android") { //安卓
							// 	if (plus.runtime.isApplicationExist({ //查看安卓系统手机有没有下载这款app
							// 			pname: 'com.whatsapp', //B款app云打包的包名 
							// 		})) { //安装了app  
							// 		plus.runtime.openURL('whatsapp://send/?phone=' + this.kefutel,
							// 			function(res) {
							// 				console.log(res);
							// 			});
							// 	} else { //未安装app
							// 		uni.showModal({
							// 			title: 'WhatsApp is not installed on your phone',
							// 			icon: 'none',
							// 			duration: 2000,
							// 		});
							// 	}
							// }
					}
				})
			},
			// 调用客服列表
			kefu(tel, name) {
				this.kefutel=tel;
				this.kename=name
				this.$http.get("/baseService/list", {
					params: {
						login: getEncryptString('', this.$password())
					}
				}).then(res => {
					if (res.data.status == 200) {
						let arr = JSON.parse(getDecryptString(res.data.data, this.$password()));
						 arr = arr.filter((el) => el.serviceStatus == '1')
						if (!tel || !name) {
							// 首次登录 没有分配客服  直接分配
							// 随机数
							let suiji = parseInt(Math.floor(Math.random() * arr.length - 1) + 1)
							this.fenpei(arr[suiji])
						} else {
							let kefuname = arr.filter((el) => el.userName == name)
							let kefutel = arr.filter((el) => el.phone == tel)
							if (kefuname.length == 0) {
								// 若用户的客服名称不在客服列表需要重新随机分配一个在线客服
								let suiji = parseInt(Math.floor(Math.random() * arr.length - 1) + 1)
								this.fenpei(arr[suiji])
								return
							}
							if (kefuname.length > 0 && kefutel.length == 0) {
								// 若用户客服名称在客服列表但客服手机号不同需要更改用户的客服手机号
								this.kuna=kefuname[0].userName;
														this.kutel=kefuname[0].phone
								// 变更给予用户弹窗提示
								this.openpop10()
								// 用户同意后跳转到WhatsApp
								return

							}

						}
						// Math.floor(Math.random()*arr.length-1)
						// 随机数
						// let suiji = parseInt(Math.floor(Math.random() * arr.length - 1) + 1)
						// this.fenpei(arr[suiji])
					}
				})
			},
			apply() {
				// 用户信息接口  获取  客服电话  客服名称  审核状态      具体查看客服分配逻辑
				this.$http.get("/user/v1/getcurruser", {}).then(res => {
					if (res.data.status == 200) {
						let arr = JSON.parse(getDecryptString(res.data.data, this.$password()));
						// console.log(arr)
						// 然后 调取客服列表
						// 如果当前账号未分配客服  则调用客服列表 进行客服分配
						// loanAmount    loginStatus
						
						// if (arr.linkKefu && arr.loanAmount) {
						// 	// 存在客服 且 存在额度时调用 联系客服自动生成订单”接口
						// 	this.$http.post("/user/v1/order", {}).then(res => {

						// 	})
						// } else {
						// 	// 没有客服  直接分配 或者修改客服
						// 	this.kefu(arr.linkKefu, arr.linkName)
						// }
						// 没有客服  直接分配 或者修改客服
						this.kefu(arr.linkKefu, arr.linkName)
					}
				})
				this.$http.get("/sysconfig/list1", {}).then(res => {
					if (res.data.status == 200) {
						let arr = JSON.parse(getDecryptString(res.data.data, this.$password()));
						// console.log(arr)
						this.font = arr.filter((el) => el.sysKey == '审核等待页面')
						if (this.font[0].sysVal == "是") {
							// 存储当前时间戳 方便下一个页面判断是否过去三分钟时间
							uni.setStorageSync('times', Date.parse(new Date()));
							// 存储是否开启审核
							uni.setStorageSync('shenhe', '是');
							uni.reLaunch({
								url: '/pages/backupcopy/backupcopy'
							})
							// uni.navigateTo({
							// 	url: "/pages/backupcopy/backupcopy"
							// })
						} else {
							uni.setStorageSync('shenhe', '否');
							uni.reLaunch({
								url: '/pages/huxing/huxing'
							})
							// uni.navigateTo({
							// 	url: "/pages/huxing/huxing"
							// })
						}
					}
				})
				uni.setStorageSync('kefutel',this.kefutel)
				uni.setStorageSync('kename',this.kename)
			},

			// 打开上一级弹窗
			// 关闭返回上一级弹窗
			openpop() {
				this.$refs.popup.open('center')
			},
			closepop1() {
				this.$refs.popup.close()
			},
			// 返回上一阶段页面
			quit() {
				uni.reLaunch({
					url: "/pages/authentication/authenticationtwo"
				})
			},
			// 触摸
			touchStart(event) {
				// 获取初始时间
				this.startTime = Date.now()
				// 获取初始的位置
				this.startPosition = event.changedTouches[0].clientX
			},
			touchEnd(event) {
				const endTime = Date.now()
				if (endTime - this.startTime > 2000) {
					// 如果手指滑动的距离超过2s 就默认不合法
					return;
				}
				// 判断其滑动的距离是否值得触发，给定一个10 的距离
				if (Math.abs(this.endPosition - this.startPosition) > 15) {
					this.endPosition = event.changedTouches[0].clientX
					var elePosition = this.endPosition - this.startPosition > 0 ? "right" : "left"
				} else {
					return;
				}
				if (elePosition == 'right') {
					this.openpop()
				}
			},
			// 关闭更换客服电话号 弹窗
			closepop() {
				this.$refs.popup10.close()
			},
			// 打开更换客服手机号 弹窗
			openpop10() {
				this.$refs.popup10.open('center')
			},
			// 同意变更手机号 则跳转 wats app
			sures() {
				this.fenpei('','',this.kutel);
				this.closepopuser();
				if (plus.os.name == "Android") { //安卓
					if (plus.runtime.isApplicationExist({ //查看安卓系统手机有没有下载这款app
							pname: 'com.whatsapp', //B款app云打包的包名 
						})) { //安装了app  
						plus.runtime.openURL('whatsapp://send/?phone=' + this.kefutel,
							function(res) {
								console.log(res);
							});
					} else { //未安装app
						uni.showModal({
							title: 'WhatsApp is not installed on your phone',
							confirmText:"Confirm",
							cancelText:"Cancel",
							icon: 'none',
							duration: 2000,
						});
					}
				}
				// else if (plus.os.name == "iOS") { //苹果
				// 	//因为ios查不到B款app在ios系统手机里面，其实下载了，也是检测不到，所以就不检测了
				// 	//直接打开B款app，B款app没有的话，会进入回调报错，我们在回调去打开下载链接
				// 	plus.runtime.launchApplication({
				// 		action: 'bjhlliveapp://room.join?joinCode=' + params.joinCode + '&userName=' + params
				// 			.userName + '&userType=' + params.userType + '&classType=' + params.classType +
				// 			'&privateDomain=e87766440'
				// 	}, function(e) {
				// 		uni.showModal({
				// 			title: '提示',
				// 			content: '您还没有此APP,去下载',
				// 			success: function(res) {
				// 				if (res.confirm) {
				// 					plus.runtime.openURL(
				// 						'https://a.app.qq.com/o/simple.jsp?pkgname=com.baijia.live',
				// 						function(res) { //打开应用宝 让应用宝下载app
				// 							//进入后台小哥哥给我的appStore下载app链接，，让你们后台给你
				// 							//这链接会判断你手机是ios还是Android，ios进入应用宝下载app
				// 							//跟上面的是一个链接
				// 							console.log(res);
				// 						});
				// 				} else if (res.cancel) {
				// 					console.log('用户点击取消');
				// 				}
				// 			}
				// 		});
				// 	});
				// }
			}
		},
		onBackPress(e) {
			this.openpop()
			return true;
		}
	}
</script>

<style scoped lang="scss">
	page {
		background-color: #FFFFFF;
	}

	.authentication {
		width: 100%;
		height: 100%;
		padding-bottom: 40rpx;
	}

	// header头部
	.au_header {
		background-color: rgba(213, 48, 48, 1);
		padding-top: 96rpx;
		padding-bottom: 32rpx;
		text-align: center;
		font-size: 40rpx;
		font-family: SourceHanSansSC-Regular, SourceHanSansSC;
		font-weight: 400;
		color: #FFFFFF;
		line-height: 58rpx;
		letter-spacing: 2rpx;
	}

	// 流程
	.authentication .au_flow {
		margin-left: 28rpx;
		margin-right: 26rpx;
		margin-top: 56rpx;
	}

	.au_flow .flow_texts {
		display: flex;
		justify-content: space-around;
		margin-bottom: 42rpx;
	}

	.au_flow .flow_texts .flow_text {
		font-size: 26rpx;
		font-family: SourceHanSansSC-Medium, SourceHanSansSC;
		font-weight: 600;
		color: rgba(213, 48, 48, 0.5);
		line-height: 38rpx;
	}

	.au_flow .flow_texts .flow_text.active {
		font-size: 26rpx;
		font-family: "SourceHanSansSC-Medium", "SourceHanSansSC";
		font-weight: 600;
		color: #D53030;
		line-height: 38rpx;
	}

	// 流程线
	.flow_lines {
		height: 14rpx;
		border-radius: 12rpx;
		border: 2rpx solid #D53030;
		position: relative;
		margin-bottom: 48rpx;
	}

	.flow_lines .flow_line {
		height: 14rpx;
		background: #D53030;
		border-radius: 12rpx;
		width: 100%·;
	}

	.flow_Cirline {
		width: 30rpx;
		height: 30rpx;
		background: #FFFFFF;
		border: 2rpx solid #D53030;
		border-radius: 50%;
		position: absolute;
		top: 0;
		transform: translateY(-31%);
		left: 102rpx;
	}

	.flow_Cirline.two {
		left: 334rpx;
	}

	.flow_Cirline.there {
		left: 566rpx;
	}

	// 认证一的from表单
	.u-popup {
		flex: 0 !important;
	}

	.u-form .u-form-item {
		position: relative !important;
		margin-bottom: 58rpx;
	}

	.u-form /deep/ .u-form-item .u-form-item__body {
		padding: 0 0 !important;
	}

	.u-form /deep/ .u-form-item .u-input {
		padding: 0 54rpx 0 0 !important;

	}

	.u-form /deep/ .u-form-item .u-input .u-input__content {
		height: 112rpx !important;
		font-size: 32rpx !important;
		font-family: "SourceHanSansSC-Medium", "SourceHanSansSC " !important;
		font-weight: 500 !important;
		color: #D53030 !important;
		line-height: 48rpx !important;
		padding-left: 52rpx;
	}

	.i_Birthday,
	.i_sex {
		position: absolute;
		font-size: 24rpx;
		font-family: "SourceHanSansSC-Regular", "SourceHanSansSC";
		font-weight: 400;
		color: rgba(0, 0, 0, 0.6);
		line-height: 32rpx;
		background-color: #fff;
		left: 56rpx;
		top: -13px;
		transform: translateY(25%);
		padding: 0 10rpx;

	}

	.from_next {
		width: 100%;
		height: 86rpx;
		border-radius: 46rpx;
		border: 4rpx solid #D53030;
		line-height: 86rpx;
		font-size: 28rpx;
		font-family: "SourceHanSansSC-Medium", "SourceHanSansSC";
		font-weight: 500;
		color: #D53030;
	}

	// 上传
	.update {
		width: 100%;
		display: flex;
		height: 264rpx;
		border: 2rpx solid rgba(0, 0, 0, 0.12);
		margin-bottom: 58rpx;
		justify-content: space-around;
		align-items: center;
	}

	.update .update_left,
	.update .update_right {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.update .update_left .up_title,
	.update .update_right .up_title {
		margin-bottom: 18rpx;
		font-size: 28rpx;
		font-family: "SourceHanSansSC-Regular", "SourceHanSansSC";
		font-weight: 400;
		color: #000000;
		line-height: 44rpx;
	}

	.update /deep/ .update_left .u-upload__wrap {
		width: 100rpx !important;
		height: 98rpx !important;
		background-color: #fff !important;
	}

	.update /deep/ .update_left .u-upload__button,
	.update /deep/ .update_right .u-upload__button {
		background-color: #fff;
		border: 2rpx dashed rgba(0, 0, 0, 0.8);
	}

	// 弹出层
	.u-popup /deep/ .popup {
		padding: 72rpx 50rpx 0 50rpx;
		box-sizing: border-box;
	}

	.u-popup /deep/ .popup .popup_text {
		font-size: 34rpx;
		font-family: "SourceHanSansSC-Regular", "SourceHanSansSC";
		font-weight: 600;
		color: #000000;
		line-height: 50rpx;
	}

	.u-popup /deep/ .popup .popup_button {
		width: 100%;
		height: 88rpx;
		background: #D53030;
		border-radius: 16rpx;
		backdrop-filter: blur(20rpx);
		border: none;
		margin-top: 48rpx;
		font-size: 34rpx;
		font-family: "SourceHanSansSC-Medium", "SourceHanSansSC";
		font-weight: 500;
		color: #FFFFFF;
	}

	.returns {
		width: 100% !important;
		background-color: #fff;
		border-radius: 10rpx;
		padding: 45rpx;

		.pop-img {
			width: 260rpx;
			height: 200rpx;
			margin: 15rpx auto 35rpx;
			display: block;
		}

		.pop-tit {
			text-align: center;
			color: #333;
			font-size: 34rpx;
			font-weight: bold;
		}

		.pop-text {
			text-align: center;
			font-size: 24rpx;
			color: #999;
			line-height: 24rpx;
			margin-top: 10rpx;
		}

		.pop-btn {
			width: 100%;
			display: flex;
			align-items: center;
			column-gap: 50rpx;
			margin-top: 50rpx;

			.quit {
				width: 250rpx;
				height: 60rpx;
				line-height: 60rpx;
				color: #4787FD;
				font-size: 30rpx;
			}

			.closes {
				width: 250rpx;
				height: 60rpx;
				line-height: 60rpx;
				background-color: #eee;
				font-size: 30rpx;
			}
		}

	}


	.returns {
		width: 100% !important;
		background-color: #fff;
		border-radius: 10rpx;
		padding: 45rpx;

		.pop-text {
			text-align: center;
			font-size: 24rpx;
			color: #999;
			line-height: 24rpx;
			margin-top: 10rpx;
		}

		.pop-btn {
			width: 100%;
			display: flex;
			align-items: center;
			column-gap: 50rpx;
			margin-top: 50rpx;

			.quit {
				width: 250rpx;
				height: 60rpx;
				line-height: 60rpx;
				color: #4787FD;
				font-size: 30rpx;
			}

			.closes {
				width: 250rpx;
				height: 60rpx;
				line-height: 60rpx;
				background-color: #eee;
				font-size: 30rpx;
			}
		}

	}
</style>
